package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 属性表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("class_attribute")
public class ClassAttribute extends Model<ClassAttribute> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 分类ID
     */
    @TableField("class_id")
    private String classId;
    /**
     * 分类名称
     */
    @TableField("class_name")
    private String className;
    /**
     * 第一属性名称
     */
    @TableField("first_attribute")
    private String firstAttribute;
    /**
     * 第二属性名称
     */
    @TableField("second_attribute")
    private String secondAttribute;
    @TableField("logic_delete")
    private String logicDelete;
    @TableField("create_date")
    private Date createDate;
    @TableField("update_date")
    private Date updateDate;
    /**
     * 商品id
     */
    @TableField("product_id")
    private String productId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getFirstAttribute() {
        return firstAttribute;
    }

    public void setFirstAttribute(String firstAttribute) {
        this.firstAttribute = firstAttribute;
    }

    public String getSecondAttribute() {
        return secondAttribute;
    }

    public void setSecondAttribute(String secondAttribute) {
        this.secondAttribute = secondAttribute;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ClassAttribute{" +
        "id=" + id +
        ", classId=" + classId +
        ", className=" + className +
        ", firstAttribute=" + firstAttribute +
        ", secondAttribute=" + secondAttribute +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", productId=" + productId +
        "}";
    }
}
